//
//  CollectManageViewController.m
//  DaMaoMall
//
//  Created by 周影杰 on 16/7/27.
//  Copyright © 2016年 daMao-wally. All rights reserved.
//

#import "CollectManageViewController.h"
#import "CollectManageSelectView.h"
#import "EditContactViewController.h"

@interface CollectManageViewController ()<UIScrollViewDelegate>
@property (strong,nonatomic)CollectManageSelectView *selectView;
@end

@implementation CollectManageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpconfigure];
    [self setUpSelectView];
}
- (void)setUpSelectView {
    CollectManageSelectView *selectView = [[CollectManageSelectView alloc] initWithFrame:CGRectMake(0, UI_NAVIGATION_BAR_HEIGHT + UI_STATUS_BAR_HEIGHT, kScreenWidth, 40)];
    [self.view addSubview:selectView];
    self.selectView = selectView;
    
    [self.selectView collectManageBlock:^(NSInteger index) {
        //index 10 企业收藏 11 产品收藏
        NSLog(@"%@",index == 10 ? @"企业" : @"产品");
        EditContactViewController *editVc = [[EditContactViewController alloc] init];
        [self.navigationController pushViewController:editVc animated:YES];
    }];
}
- (void)setUpconfigure {
    self.titleLabel.text = @"收藏管理";
}
@end